package org.demo.vo.daomapping;

import org.demo.vo.bean.Country;
import org.telosys.persistence.mapping.AttributeMapping;
import org.telosys.persistence.mapping.EntityMapping;

public class CountryMapping extends EntityMapping<Country>
{
	private final static Class<Country> entityClass = Country.class ;

	private final static String   table   = "COUNTRY" ;

	private final static String   schema  = null ;  // Can be null if not required by the database
	
	private final static AttributeMapping[] attributesMapping = new AttributeMapping[]
	{
		new AttributeMapping("code",  "CODE",   true,  false, 0 ),
		new AttributeMapping("name",  "NAME",   false, false, 0 )
	};
	
	public CountryMapping() 
	{
		super(entityClass, table, schema, attributesMapping, null, null );
	}

}
